
Rmarkdown Presentation Template
Hung P. Do, PhD, MSEE
Outlines
- Equations
- Maxwell Equations
- Schrödinger Equation
- Interactive Plots
- Tables
- Interactive Maps
- R Shiny Apps #1: Simple Nonlinear Exponential Fitting
- R Shiny Apps #2: Predict next Word using a simple n-gram Language Model
- Embedded Websites
Maxwell Equations
The coupled partial differential equations that form the foundation of classical electromagnetism. The integral (left) and differential (right) form.
∫∫◯ (D⃗ ⋅n⃗ )d2A=Qfree,included ∫∫◯ (B⃗ ⋅n⃗ )d2A=0∮E⃗ ⋅ds⃗ =−dΦdt∮H⃗ ⋅ds⃗ =Ifree,included+dΨdt∇⋅D⃗ =ρfree∇⋅B⃗ =0∇×E⃗ =−∂B⃗ ∂t∇×H⃗ =J⃗ free+∂D⃗ ∂t
Schrödinger Equation
The Schrödinger equation is a linear partial differential equation that governs the wave function of a quantum-mechanical system.
−ℏ22m∇2ψ+Uψ=Eψ=iℏ∂ψ∂t
Tables
Let’s use a linear model to fit miles per gallon (mpg) as a function of weight (wt) and the number of cylinders (cyl).
library(pander)
data("mtcars")
fit <- lm(mpg~wt+cyl, data=mtcars)
pander(fit, type = 'html', title = 'Linear Model Outputs')
Fitting linear model: mpg ~ wt + cyl
| (Intercept) |
39.69 |
1.715 |
23.14 |
3.043e-20 |
| wt |
-3.191 |
0.7569 |
-4.216 |
0.000222 |
| cyl |
-1.508 |
0.4147 |
-3.636 |
0.001064 |
R Shiny Apps #1: Simple Nonlinear Exponential Fitting
- Here is the weblink to a very simple R shiny app that performs the nonlinear exponential fitting.
- Here is the weblink to the slide deck that describes the app.

R Shiny Apps #2: Predicting Next Word
- Here is the weblink to a very simple R shiny app that predict the next word using a simple n-gram language model.

Rmarkdown Presentation Template
Hung P. Do, PhD, MSEE